/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.anny.dealstream.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeeplus.core.persistence.Page;
import com.jeeplus.core.service.CrudService;
import com.jeeplus.modules.anny.dealstream.entity.AnnyDealStream;
import com.jeeplus.modules.anny.dealstream.mapper.AnnyDealStreamMapper;

/**
 * 交易流水表Service
 * @author linzx
 * @version 2018-10-22
 */
@Service
@Transactional(readOnly = true)
public class AnnyDealStreamService extends CrudService<AnnyDealStreamMapper, AnnyDealStream> {
@Autowired
private AnnyDealStreamMapper annyDealStreamMapper;
	public AnnyDealStream get(String id) {
		return super.get(id);
	}
	
	public List<AnnyDealStream> findList(AnnyDealStream annyDealStream) {
		return super.findList(annyDealStream);
	}
	
	public Page<AnnyDealStream> findPage(Page<AnnyDealStream> page, AnnyDealStream annyDealStream) {
		return super.findPage(page, annyDealStream);
	}
	
	@Transactional(readOnly = false)
	public void save(AnnyDealStream annyDealStream) {
		super.save(annyDealStream);
	}
	
	@Transactional(readOnly = false)
	public void delete(AnnyDealStream annyDealStream) {
		super.delete(annyDealStream);
	}

	/**
	 * 通过订单ID，查询对应订单
	 * @param orderId
	 * @return
	 */
	public List<AnnyDealStream> selectOrderID(String orderId){
		return annyDealStreamMapper.selectOrderID(orderId);
	}
	
}